package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_ACLS_RESMENU"
 *     
*/
public class CcpAclsResmenu implements Serializable {

    /** identifier field */
    private String carGuid;

    /** nullable persistent field */
    private String menuTag;

    /** nullable persistent field */
    private String menuViewName;

    /** nullable persistent field */
    private String menuAdminName;

    /** nullable persistent field */
    private String menuDesc;

    /** nullable persistent field */
    private String menuUrl;

    /** nullable persistent field */
    private String menuParentGuid;

    /** nullable persistent field */
    private String menuOrder;

    /** nullable persistent field */
    private String menuReserved1;

    /** nullable persistent field */
    private String menuReserved2;

    /** nullable persistent field */
    private String menuReserved3;

    /** nullable persistent field */
    private String menuReserved4;

    /** nullable persistent field */
    private String other1;

    /** nullable persistent field */
    private String other2;

    /** nullable persistent field */
    private String other3;

    /** nullable persistent field */
    private String other4;

    /** nullable persistent field */
    private String other5;

    /** full constructor */
    public CcpAclsResmenu(String carGuid, String menuTag, String menuViewName, String menuAdminName, String menuDesc, String menuUrl, String menuParentGuid, String menuOrder, String menuReserved1, String menuReserved2, String menuReserved3, String menuReserved4, String other1, String other2, String other3, String other4, String other5) {
        this.carGuid = carGuid;
        this.menuTag = menuTag;
        this.menuViewName = menuViewName;
        this.menuAdminName = menuAdminName;
        this.menuDesc = menuDesc;
        this.menuUrl = menuUrl;
        this.menuParentGuid = menuParentGuid;
        this.menuOrder = menuOrder;
        this.menuReserved1 = menuReserved1;
        this.menuReserved2 = menuReserved2;
        this.menuReserved3 = menuReserved3;
        this.menuReserved4 = menuReserved4;
        this.other1 = other1;
        this.other2 = other2;
        this.other3 = other3;
        this.other4 = other4;
        this.other5 = other5;
    }

    /** default constructor */
    public CcpAclsResmenu() {
    }

    /** minimal constructor */
    public CcpAclsResmenu(String carGuid) {
        this.carGuid = carGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CAR_GUID"
     *         
     */
    public String getCarGuid() {
        return this.carGuid;
    }

    public void setCarGuid(String carGuid) {
        this.carGuid = carGuid;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_TAG"
     *             length="20"
     *         
     */
    public String getMenuTag() {
        return this.menuTag;
    }

    public void setMenuTag(String menuTag) {
        this.menuTag = menuTag;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_VIEW_NAME"
     *             length="50"
     *         
     */
    public String getMenuViewName() {
        return this.menuViewName;
    }

    public void setMenuViewName(String menuViewName) {
        this.menuViewName = menuViewName;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_ADMIN_NAME"
     *             length="50"
     *         
     */
    public String getMenuAdminName() {
        return this.menuAdminName;
    }

    public void setMenuAdminName(String menuAdminName) {
        this.menuAdminName = menuAdminName;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_DESC"
     *             length="100"
     *         
     */
    public String getMenuDesc() {
        return this.menuDesc;
    }

    public void setMenuDesc(String menuDesc) {
        this.menuDesc = menuDesc;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_URL"
     *             length="100"
     *         
     */
    public String getMenuUrl() {
        return this.menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_PARENT_GUID"
     *             length="32"
     *         
     */
    public String getMenuParentGuid() {
        return this.menuParentGuid;
    }

    public void setMenuParentGuid(String menuParentGuid) {
        this.menuParentGuid = menuParentGuid;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_ORDER"
     *             length="10"
     *         
     */
    public String getMenuOrder() {
        return this.menuOrder;
    }

    public void setMenuOrder(String menuOrder) {
        this.menuOrder = menuOrder;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_RESERVED1"
     *             length="200"
     *         
     */
    public String getMenuReserved1() {
        return this.menuReserved1;
    }

    public void setMenuReserved1(String menuReserved1) {
        this.menuReserved1 = menuReserved1;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_RESERVED2"
     *             length="200"
     *         
     */
    public String getMenuReserved2() {
        return this.menuReserved2;
    }

    public void setMenuReserved2(String menuReserved2) {
        this.menuReserved2 = menuReserved2;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_RESERVED3"
     *             length="200"
     *         
     */
    public String getMenuReserved3() {
        return this.menuReserved3;
    }

    public void setMenuReserved3(String menuReserved3) {
        this.menuReserved3 = menuReserved3;
    }

    /** 
     *            @hibernate.property
     *             column="MENU_RESERVED4"
     *             length="200"
     *         
     */
    public String getMenuReserved4() {
        return this.menuReserved4;
    }

    public void setMenuReserved4(String menuReserved4) {
        this.menuReserved4 = menuReserved4;
    }

    /** 
     *            @hibernate.property
     *             column="OTHER1"
     *             length="50"
     *         
     */
    public String getOther1() {
        return this.other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1;
    }

    /** 
     *            @hibernate.property
     *             column="OTHER2"
     *             length="100"
     *         
     */
    public String getOther2() {
        return this.other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2;
    }

    /** 
     *            @hibernate.property
     *             column="OTHER3"
     *             length="100"
     *         
     */
    public String getOther3() {
        return this.other3;
    }

    public void setOther3(String other3) {
        this.other3 = other3;
    }

    /** 
     *            @hibernate.property
     *             column="OTHER4"
     *             length="200"
     *         
     */
    public String getOther4() {
        return this.other4;
    }

    public void setOther4(String other4) {
        this.other4 = other4;
    }

    /** 
     *            @hibernate.property
     *             column="OTHER5"
     *             length="200"
     *         
     */
    public String getOther5() {
        return this.other5;
    }

    public void setOther5(String other5) {
        this.other5 = other5;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("carGuid", getCarGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpAclsResmenu) ) return false;
        CcpAclsResmenu castOther = (CcpAclsResmenu) other;
        return new EqualsBuilder()
            .append(this.getCarGuid(), castOther.getCarGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCarGuid())
            .toHashCode();
    }

}
